pre {
    background: #F8F8F8;
    border-radius: 2px;
    margin-bottom: 17px;
    padding: 10px;
    overflow: auto;
    position: relative;
}

pre .code-copy {
    position: absolute;
    display: none;
    top: 10px;
    right: 10px;
    padding: 0 10px;
    border-radius: 2px;
    font-size: 17px;
    color: #838586;
    cursor: pointer;
}

pre .code-copy:hover {
    color: cadetblue;
}

pre:hover .code-copy {
    display: block;
}